package com.doudou.pay.helper.server.protoco;

public class ProtocoConsts {

	public final static int SUCCESS = 1;
	public final static int FAIL = -1;
	public final static int NO_PAY_TYPE = 2;
	public final static int NO_ORDER_NUM = 3;
	public final static int NO_MONEY = 4;
	public final static int MONEY_LIMIT = 5;
	public final static int ORDER_EXIST = 6;
	public final static int ACCOUNTS_PAY_LIMIT = 7;
	public final static int ORDER_OVER_TIME = 8;
	public final static int ORDER_HAVE_PAY = 9;
	public final static int USER_ERROR = 10;
	public final static int MONEY_OVER_LIMIT = 11;

	public final static int QUERY_NO_USERID = 2;
	public final static int QUERY_NO_ORDER_NUM = 3;
	public final static int QUERY_ORDER_NOT_EXIST = 4;

	public final static String SUCCESS_DEFINE = "SUCCESS";
	public final static String FAIL_DEFINE = "FAIL";

	/** tcp消息类型-心跳 */
	public final static int TCP_MSG_TYPE_HEARTBEAT = 12;
	/** tcp消息类型-鉴权 */
	public final static int TCP_MSG_TYPE_AUTHENTICATION = 11;

	/** tcp消息类型-发起支付 */
	public final static int TCP_MSG_TYPE_REQUEST_PAY = 21;
	/** tcp消息类型-响应支付 */
	public final static int TCP_MSG_TYPE_RESPONSE_PAY = 22;

	public final static String CHARSET = "UTF-8";
}
